<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css">
<title>
Gambas Documentation - String[].Join
 (gb)</title>
</head>
<body>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../../help%3Fen"><img class="flag" alt="Home" border="0" src="../../../../img/lang/en.png" align="center"></a>&nbsp;&nbsp;
<a href="../string[]%3Fen">Up</a>&nbsp;&nbsp;
<a href="insert%3Fen">Previous</a>&nbsp;&nbsp;
<a href="pop%3Fen">Next</a>&nbsp;&nbsp;
</td></tr></table>
<div class="notab">
<h1>
String[].Join
 (gb)</h1>
<div class="black"><font color="white" size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><font color="blue">FUNCTION</font> <b>Join</b> <font color="blue">(</font> <b>[</b> <u>Separator</u> <font color="blue">AS</font> <font color="#0080FF">String</font><font color="blue">,</font> <u>Escape</u> <font color="blue">AS</font> <font color="#0080FF">String</font> <b>]</b> <font color="blue">)</font> <font color="blue">AS</font> <font color="#0080FF">String</font></pre>
Concatenates the strings stored in the arrays.
<p>
Separator is a string that will be inserted between each string of the array.
The default separator is a comma.
<p>
This function is the contrary of the <a href="../../../lang/split%3Fen">Split</a> subroutine.
<p>
<div class="gray"><font color="white" size="-2"><b>Example</b></font></div>
<pre class="example">DIM aClaim AS String[]

aClaim = [ &quot;Gambas&quot;, &quot;Almost&quot;, &quot;Means&quot;, &quot;Basic&quot;, &quot;!&quot; ]
PRINT aClaim.Join(&quot;/&quot;)
<hr>Gambas/Almost/Means/Basic/!</pre>

</div>
<hr>
</body>
</html>

